<script type="text/javascript"><!--//--><![CDATA[//><!--

    $(document).ready(function() {
		// Setup Form
		$('#form_popup').setupForm([
			{ name: 'menu_id', type: 'text', size: 'medium', maxlength: 10, readonly: true },
			{ name: 'menu_label', type: 'text', size: 'long', maxlength: 100 },
			{ name: 'parent_menu_id', type: 'combotree', size: 'long', data: <?php echo $parent_data; ?>},
			{ name: 'url', type: 'text', size: 'long', maxlength: 255 },
			{ name: 'order_num', type: 'numeric', precision: 0, size: 'short', maxlength: 10 },
			{ name: 'status', type: 'text', size: 'short', data:[{ value:'1', display:'Yes' }, { value:'0', display:'No' }] }
		], <?php echo json_encode($data); ?>);
		
		<?php if($mode=="create"){ ?>
		    $('#tr_menu_id').hide();
		<?php } ?>
		
		// Focus at First Object
		$('#form_popup').focusFirst();
	});
//--><!]]></script>

<table class="tb_form" style="display:none; margin:10px;" cellpadding="0" cellspacing="0">
<tr id="tr_menu_id">
    <td class="label">Menu Id</td>
    <td><input id="menu_id" /></td>
</tr>
<tr>
    <td class="label" style="width:150px">Label</td>
    <td><input id="menu_label" /></td>
</tr>
<tr>
    <td class="label">Menu Induk</td>
    <td><input id="parent_menu_id" /></td>
</tr>
<tr>
    <td class="label">URL</td>
    <td><input id="url" /></td>
</tr>
<tr>
    <td class="label">No.Urut</td>
    <td><input id="order_num" /></td>
</tr>
<tr>
    <td class="label">Publish</td>
    <td><input id="status" /></td>
</tr>
</table>